<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1.0" />
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>主播-{$C.webtitle}</title>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/style.css">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/index.css">
	<script type="text/javascript" src="__PUBLIC__/js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/banner.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/Adaptive.js"></script>
</head>

<body>

<include file="Public:header"/>
<div class="mx_head">
<div class="num_box">
	<php>
	if(!empty($_COOKIE['id'])){
	</php>
		<a href="{:U('User/baoming')}" class="join_us">我也要参加</a>
	<php>
	}else{
	</php>
		<a href="javascript:;" onClick="woyebaoming()" class="join_us">我也要参加</a>
		<script type="text/javascript">
		function woyebaoming(){
			$.post("{:U('User/getlogzt')}",{},function(msg){
				if(msg==1){
					location.href="./index.php?a=baoming&m=user";
				}else{
					alert("请先登录！");
					location.href="./index.php?a=login&m=user";
				}
			});
		}
		</script>
	<php>
	}
	</php>
</div>

    <section class="content">
        <div class="text_a clearfix">
            <ul>
 				<php>
				if($pid==1){
				</php>
					<li> <a href="{:U('Index/videos')}">最新主播</a></li>
					<li class="active"><a href="{:U('Index/videos',array(pid=>1))}">粉丝排行</a></li>
				<php>
				}else{
				</php>
					<li class="active"> <a href="{:U('Index/videos')}">最新主播</a></li>
					<li><a href="{:U('Index/videos',array(pid=>1))}">粉丝排行</a></li>
				<php>
				}
				</php>
            </ul>
        </div>
        <div class="blank20"></div>
        <div class="content_wrap">
			<div class="wrapper">
				<ul class="masonry">
					<volist name="videos" id="videos">
						<li class="masonry-brick">
							<i class="number">{$videos.id}号</i>
							<a href="{:U('Index/videos_show',array(nid=>$videos[id]))}">
								<img src="{$videos.img}" />
								<p>{$videos.name}</p>
								<small>{$videos.zannum}粉丝</small>
								<input type="button" value="喜欢" />
							</a>
						</li>
					</volist>
	
				</ul>
	
				<div class="clear"></div>
			</div>
            <div class="more">
				<input type="hidden" value="{$nowPage}" id="nowpage" />
				<input type="hidden" value="{$pid}" id="pid" />
                <p>查看更多<img src="__PUBLIC__/images/icon/arr-right.png"></p>
            </div>

        </div>
        <div style="height: 1.8rem"></div>
    </section>
</div>


<include file="Public:bottom"/>  

<script type="text/javascript">
    $(".more").click(function(){
		var nowpage=$("#nowpage").val();
		var pid=$("#pid").val();
		$.post("{:U('Index/more_videos')}", {pid:pid,nowpage:nowpage}, function(v){
			$(".masonry").append(v.ccc);
			$("#nowpage").val(v.nextpage);
		},'JSON');
        
    })
</script>
</body>
</html>
  
